Skip to content

Add safe workspace cleanup entrypoint#832

Merged
chubes4 merged 1 commit into
mainfrom
fix/issue-824-safe-cleanup
Jun 27, 2026
Merged

Add safe workspace cleanup entrypoint#832
chubes4 merged 1 commit into
mainfrom
fix/issue-824-safe-cleanup

Conversation

@chubes4

@chubes4 chubes4 commented Jun 27, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds workspace cleanup safe as one DMC-owned safe cleanup entrypoint.
  • Composes existing safe cleanup-eligible and active/no-signal drains, refuses force/unpushed discard, prunes stale DMC locks, and returns compact blockers.
  • Adds focused standalone coverage for safe orchestration, lock pruning, repeated safe progress, and blocker summaries.

Closes #824.

Tests

  • php -l inc/Workspace/WorkspaceSafeCleanupOrchestrator.php
  • php -l inc/Cli/Commands/WorkspaceCommand.php
  • php tests/workspace-safe-cleanup-orchestrator.php
  • php tests/smoke-abandoned-cleanup-orchestrator.php
  • php tests/smoke-cleanup-eligible-drain.php
  • php tests/workspace-compact-output.php
  • git diff --check

AI assistance

  • AI assistance: Yes
  • Tool(s): openai/gpt-5.5 and OpenCode
  • Used for: Implementing the safe cleanup entrypoint, focused tests, and verification.

@chubes4 chubes4 merged commit 252a898 into main Jun 27, 2026
4 of 5 checks passed
@chubes4 chubes4 deleted the fix/issue-824-safe-cleanup branch June 27, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

provide one safe workspace cleanup entrypoint until no more safe progress

1 participant